package com.xquant.marketdata.marketdata.controller;

import com.github.pagehelper.PageInfo;
import com.xquant.marketdata.marketdata.service.FxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 下拉框查询
 *
 * @author ershuai.zhao
 */
@RestController
@RequestMapping("fx")
public class FxController {

    @Autowired
    private FxService fxService;

    /**
     * 查询 商品信息
     */
    @RequestMapping(value = "/queryFxInfoByPage.action")
    public PageInfo<Map> queryTcmdtInfoByPage(@RequestParam Map<String, Object> param) {
        PageInfo<Map> pageInfo = fxService.queryFxInfoByPage(param);
        return pageInfo;
    }
    /**
     * 查询 商品分红
     */
    @RequestMapping(value = "/queryFxPriceByPage.action")
    public PageInfo<Map> queryTcmdtPriceByPage(@RequestParam Map<String, Object> param) {

        PageInfo<Map> pageInfo = fxService.queryFxPriceByPage(param);

        return pageInfo;
    }




}
